package com.example.view.module.refresh

import android.os.Handler
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.common.base.AbsActivity
import com.example.view.R
import com.example.view.databinding.ActCustomRefreshBinding

@Route(path = "/view/customRefresh")
class CustomRefreshActivity : AbsActivity<ActCustomRefreshBinding?>() {
    override fun getLayoutId(): Int {
        return R.layout.act_custom_refresh
    }

    override fun main() {}

    override fun initListener() {
        mBinding!!.refreshLayout.setListener { Handler().postDelayed({ mBinding!!.refreshLayout.setRefreshFinish(true) }, 2000) }
    }
}